export const toNickArr = function (arr, labelNick, valueNick) {
  if (!arr || (arr && arr.length === 0)) return;
  const newArr = arr?.map((e) => {
    return {
      value: e[valueNick || "value"],
      label: e[labelNick || "label"],
    };
  });
  return newArr || [];
};
